@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/*  font-family: "DM Serif Display", serif; */
/* font-family: "Inter", sans-serif; */

body {
  --p-font: "Inter", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans",
    Geneva, Verdana, sans-serif;
  --h-font: "DM Serif Display", "Georgia", serif;

  --primary: #004E9B;
  --primaryRGB: 0, 78, 155;
  --secondary: #000000;
  --secondaryRGB: 0, 0, 0;
  --third: #C0DFDD;
  --thirdRGB: 192, 223, 221;

  --nav_logo_size_full: 5rem;
  --nav_logo_size_mbl: 4rem;
  --nav_banner_link_clr: #fff;
  --nav_banner_link_hvr_clr: var(--primary);
  --nav_menu_link_clr: #000;
  --nav_menu_link_hvr_clr: var(--primary);
  --nav_menu_underline_clr: var(--primary);
  --nav_menu_footer_clr: var(--secondary);

  --hero_title_size_full: 1.5rem;
  --hero_title_size_mbl: 1.5rem;
  --hero_sub_size_full: 0.25em;
  --hero_sub_size_mbl: 0.35em;
  --hero_logo_size: min(400px, 100%);
}

/* live hide */
.home #anna-modern-fold {
  display: none;
}

.home section[aria-label="property search hero"] {
  display: none;
}

.home section[data-cy="footer-valuation"] {
  display: none;
}

/* dev hide */
.home #search-tabs,
.home > section[aria-label="property search hero"] {
  display: none;
}

.home section[data-cy="footer-valuation"] {
  display: none;
}

/* miranda banner hide */
#quicksearch-section {
  display: none;
}

/* Page Resets */
.home #content {
  width: 100%;
  padding: 0;
}

.home .section-width-wrapper {
  padding: 0 !important;
  max-width: 100% !important;
}

.home #sidebar {
  display: none;
}

.home > div.lg\:px-40 {
  padding: 0 !important;
}

.home #content > section {
  margin: 0 !important;
}

/* .home header {
  position: fixed;
} */

/* modern fixes */

#rg-valuation-iframe-0 {
  min-height: 25rem !important;
}

.property-detail-listing-vertical:hover {
  outline: none !important;
}

/*  */

/* Fonts */
body *:is(p, li, a, label, legend, button, option) {
  font-family: var(--p-font) !important;
}

body *:is(h1, h2, h3, h4, h5, h6, .text-hero) {
  font-family: var(--h-font) !important;
}

body h1,
body.home h2,
body .text-hero {
  font-weight: 400;
}

/* navigation */

.home header.custom-scroll,
.pages header,
nav.top-nav {
  box-shadow: 0 1px 8px rgb(0, 0, 0, 0.15);
  border-bottom: none;
}

body > header > nav.relative > div.mx-0.pr-2.pl-6.lg\:px-8 > div {
  height: 6rem;
}
header #nav-links a,
nav.top-nav a
{
  font-size: 12px !important;
}

body header #nav-logo {
  height: var(--nav_logo_size_mbl);
}

@media (min-width: 768px) {
  body header #nav-logo {
    height: var(--nav_logo_size_full);
  }
}

body.home header:not(.custom-scroll) img {
  filter: brightness(0) invert(1);
  /* opacity: 0; */
}

body.home header > nav > div:first-child {
  transition: 300ms ease;
}

body.home header:not(.custom-scroll) > nav:not(#mobile-menu) > div:first-child {
  opacity: 1;
  background-color: rgb(255, 255, 255, 0);
}

body.home header {
  background: transparent;
}

#nav-links > div {
  justify-content: flex-end;
  align-items: center;
}

/* custom banner nav links */
body.home header:not(.custom-scroll) #nav-links a {
  color: var(--nav_banner_link_clr);
}

body.home header:not(.custom-scroll) #nav-links a:hover {
  color: var(--nav_banner_link_hvr_clr);
}

/* scrolled and pages nav links */
body.home header.custom-scroll #nav-links a,
body.pages header #nav-links a {
  color: var(--nav_menu_link_clr);
}

body.home header.custom-scroll #nav-links a:hover,
body.pages header #nav-links a:hover {
  color: var(--nav_menu_link_hvr_clr);
}

/* #nav-menu-button {
    display: flex !important;
} */

#nav-icons svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: 300ms ease;
}

body.home header #nav-icons svg {
  fill: #fff;
  color: #fff;
}

body.home header.custom-scroll #nav-icons svg,
body.pages header #nav-icons svg {
  fill: var(--nav_menu_link_clr);
  color: var(--nav_menu_link_clr);
}

#nav-menu-button svg path {
  transition: d 300ms ease;
}

#nav-menu-button svg:hover path {
  d: path("M 4 8 h 16 M 4 12 h 16 M 4 16 h 16");
}

@media (min-width: 451px) {
  .user-contact-icons ul {
    display: flex !important;
    justify-content: center;
    align-items: center;
  }
}

.user-contact-icons .svg-inline--fa:not(.fa-bars) {
  display: none;
}

.user-contact-icons ul li a {
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  transition: 300ms ease;
}

.user-contact-icons ul li a:hover svg {
  transition: 300ms ease;
}

.user-contact-icons ul li a:hover,
.user-contact-icons ul li a:hover svg {
  fill: var(--secondary);
}

.user-contact-icons ul li a svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--nav_menu_link_clr);
}

nav.top-nav a {
  transition: 300ms ease;
}

nav.top-nav a:hover {
  color: var(--nav_menu_link_clr);
}

/* fix ugly border */

header #nav-links a {
  border: none;
  padding-bottom: 0.5rem;
  
}

header #nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 1px;
  background: var(--secondary);
  transition: 300ms ease;
}

header #nav-links a:hover::after {
  width: 100%;
}

/* mobile menu */

#mobile-menu .text-palette-navigationLink-color {
  color: var(--nav_menu_link_clr);
  transition: 300ms ease;
  border-bottom: none;
  padding-bottom: 0.25rem;
  position: relative;
}

#mobile-menu .text-palette-navigationLink-color:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1rem;
  height: 1px;
  background-color: var(--nav_menu_underline_clr);
  transition: 300ms ease;
}

#mobile-menu .text-palette-navigationLink-color:hover:before {
  width: 100%;
}

#mobile-menu
  > div
  > div.pl-12.pr-32.pt-16.pb-8.flex.flex-col.h-mobile-nav-inner.sm\:h-screen.overflow-y-auto
  > div.sm\:hidden.pt-9.border-t.border-medium-gray,
#mobile-menu
  > div
  > div.sm\:hidden.p-4.absolute.bottom-0.p-11.text-white.bg-dark-gray.w-full {
  display: block;
}

#mobile-menu .bg-dark-gray {
  background-color: var(--nav_menu_footer_clr);
}

/* nav social */
#navSocialMedia {
  gap: 1rem;
}

#navSocialMedia a.social-icon-footer {
  line-height: 1;
  color: var(--primary);
  font-size: 0.75em;
  display: block;
  transition: 300ms ease;
}

#navSocialMedia a.social-icon-footer:hover {
  color: var(--secondary);
}

/* Hero */

#custom-hero {
  height: 100vh;
  height: 100dvh;
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  margin-top: -96px;
  display: flex;
  justify-content: center;
}

#custom-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-image: linear-gradient(
    45deg,
    rgb(0, 0, 0, 0.1),
    rgb(0, 0, 0, 0.45) 35% 65%,
    rgb(0, 0, 0, 0.1)
  );
}

.custom__video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#custom-hero .custom-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  position: relative;
  z-index: 3;
  padding-inline: 2rem;
  width: min(750px, 100%);
}

#custom-hero h1 {
  text-transform: uppercase;
  text-align: center;
  /* letter-spacing: 2px; */
  margin: 0;
  padding: 0;
  border: none;
  /* text-shadow: 1px 1px 0.25rem rgb(0, 0, 0, 0.35); */
  font-size: var(--hero_title_size_mbl);
  font-weight: 400;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.25em;
  text-wrap: balance;
}

#custom-hero h1 span.--sub {
  display: block;
  font-size: var(--hero_sub_size_mbl);
  margin-top: 1rem;
  font-weight: 400;
}

#custom-hero img.header_logo {
  max-width: 250px;
}

/* #custom-hero #react-typeahead,
#custom-hero #custom-search-tabs {
  width: min(750px, 100%);
  max-width: 100%;
} */

#custom-hero #custom-search-tabs {
  display: grid;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 3;
  margin-bottom: 21px;
  margin-top: 21px;
}

#custom-hero #custom-search-tabs a {
  display: inline-block;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000000;
  transition: 300ms ease;
  padding: 1rem 1.5rem;
  background-color: #ffffff;
  text-align: center;
  font-weight: 600;
}

#custom-hero #custom-search-tabs a:hover {
  background-color: #fff;
  color: var(--primary);
}

@media (min-width: 768px) {
  #custom-hero h1 {
    font-size: var(--hero_title_size_full);
  }

  #custom-hero h1 span.--sub {
    font-size: var(--hero_sub_size_full);
  }

  #custom-hero #custom-search-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* page updates */

body .h-hero-image {
  height: 50vh;
  height: 50dvh;
}

.text-hero {
  text-shadow: 1px 1px 0.25rem rgb(0, 0, 0, 0.5);
}

.h-hero-image:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0, 0.15);
  z-index: 2;
}

#rgsb-custom
  > section.mb-16
  > div
  > div.relative.h-full.flex.flex-col.justify-center.items-center {
  position: relative;
  z-index: 3;
}

/* map */
.mapsearch .search-results,
.mapsearch .viewport {
  width: 100%;
  max-width: 100%;
}
